Ext.define('HGMIDE.view.IDEPluginList', {
	extend : 'Ext.List',
	xtype : 'idePluginList',
	config : {
		items : [{
					id : 'pluginListTitle',
					xtype : 'titlebar',
					title : I18N.pluginlist,
					cls : 'pluginListTitle',
					docked : 'top',
					items : [{
								id : 'addPluginBtn',
								align : 'right'
							}]
				}],
		store : 'pluginListStore',
		itemTpl : new Ext.XTemplate('<div style="width:100%;"><div style="float:left;width:75%;"><dl class="plugin">'
				+ '<dt class="pluginImg"><img width="56px" height="56px" src="/HGMIDE/plugin/{name}/logo.png"/></dt>'
				+ '<dd><font class="pluginTitle">{nameCN}</font><br/><font class="pluginTitle" style="color:#C0C0C0">{name}</font> <br/><font class="pluginDept">{dept}</font>&nbsp;<font class="pluginVersion">{version}</font>'
				+'<tpl if="isonline == 1">&nbsp;<font class="pluginVersion">在线</font></tpl><tpl if="isonline == 0">&nbsp;<font class="pluginVersion">离线</font></tpl>'
				+'</dd>'
				+ '</dl></div><div style="margin-top:20px;float:right;">'
				+ '<img id="pluginStatus{id}" onclick="Util.closePlugin({id})" style="display:none" title="'
				+ I18N.opened
				+ '" src="resources/images/t_kk.png"/>&nbsp;<img onclick="Util.editPlugin({id})" title="'
				+ I18N.alter
				+ '" src="resources/images/t_bj.png"/>&nbsp;&nbsp;<img onclick="Util.deletePlugin({id})" title="'
				+ I18N.deletePlugin
				+ '" src="resources/images/t_cc.png"/></div></div>'),
		itemCls : 'pluginItem',
		listeners : {
			itemtap : function(dataview, index, target, record, e, eOpts) {
				//debugger;
				Util.openPlugin(record.get('id'));
			}
		}
	}
});
